package com.css.fxfzxczh.modules.fastDisasterAnalysis.casualties.entity.ypg;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Dbj
 * @date 2023年07月27日  15:41
 */
@Data
public class BuildingVulnerability implements Serializable {
    private static final long serialVersionUID = 1L;
    private String id;
    @Excel(name = "省")
    private String province;
    @Excel(name = "市")
    private String city;
    @Excel(name = "区(县)")
    private String prefecture;

    /**
     * 结构类型
     * 0高层建筑
     * 1钢结构
     * 2多层钢筋混凝土结构
     * 3砖混结构
     * 4砖木结构
     * 5土结构
     * 6木结构
     * 7石结构
     * 8其他结构
     */
    @Excel(name = "结构类型")
    private String structureType;

    @Excel(name = "破坏程度")
    /**
     * 破坏程度
     *
     *
     * 0基本完好
     * 1轻微破坏
     * 2中等破坏
     * 3严重破坏
     * 4损坏
     */
    private String destroy;
    @Excel(name = "VI（%)0.05g")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal six;
    @Excel(name = "VII（%）0.10g")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal seven;
    @Excel(name = "VIII（%）0.20g")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal eight;
    @Excel(name = "IX（%）0.40g")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal nine;
    @Excel(name = "X（%）0.80g")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal ten;

    private Date updateTime;

    private Date createTime;

    private String provinceId;
    private String cityId;
    private String prefectureId;
    private String updateUser;
    private String createUser;

    @Override
    public String toString() {
        return "BuildingVulnerability{" +
                "id='" + id + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", prefecture='" + prefecture + '\'' +
                ", structureType='" + structureType + '\'' +
                ", destroy='" + destroy + '\'' +
                ", six=" + six +
                ", seven=" + seven +
                ", eight=" + eight +
                ", nine=" + nine +
                ", ten=" + ten +
                ", updateTime=" + updateTime +
                ", createTime=" + createTime +
                ", provinceId='" + provinceId + '\'' +
                ", cityId='" + cityId + '\'' +
                ", prefectureId='" + prefectureId + '\'' +
                ", updateUser='" + updateUser + '\'' +
                ", createUser='" + createUser + '\'' +
                '}';
    }
}
